import request from '@/utils/request'

// 车辆制卡管理-列表
export function vehicleBindRecordList(params) {
  return request({
    url: '/system/vehicleBindRecord/list',
    method: 'get',
    params
  })
}

// 输入车牌模糊查询车辆列表
export function getListByVeNo(params) {
  return request({
    url: '/kmwlpts/preVehicleRecording/queryListByVeNo',
    method: 'get',
    params
  })
}

// 车辆制卡管理-新增
export function vehicleBindRecordAdd(params) {
  return request({
    url: '/system/vehicleBindRecord/add',
    method: 'post',
    data: params
  })
}

// 车辆制卡管理-编辑
export function vehicleBindRecordUpdate(params) {
  return request({
    url: '/system/vehicleBindRecord/edit',
    method: 'post',
    data: params
  })
}

// 车辆制卡管理-删除
export function vehicleBindRecordDelete(params) {
  return request({
    url: '/system/vehicleBindRecord/remove/' + params,
    method: 'get',
  })
}

// 车辆制卡管理-申报
export function vehicleBindRecordDecl(params) {
  return request({
    url: '/system/vehicleBindRecord/decl/' + params,
    method: 'get',
  })
}

// 车辆制卡管理-解绑
export function vehicleBindRecordUnbind(params) {
  return request({
    url: '/system/vehicleBindRecord/unbind/' + params,
    method: 'get',
  })
}
